package cqrtplm.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import cqrtplm.entity.RtCfgStatusInfodetailDO;
import cqrtplm.entity.StatusInfoDetailContentDO;
import cqrtplm.vo.StatusInfoDetailContentVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
* @author 博
* @description 针对表【RT_CFG_STATUS_INFODETAIL】的数据库操作Mapper
* @createDate 2025-06-30 22:08:34
* @Entity cqrtplm.entity.RtCfgStatusInfodetailDO
*/
public interface RtCfgStatusInfodetailMapper extends BaseMapper<RtCfgStatusInfodetailDO> {

    List<RtCfgStatusInfodetailDO> selectByStatusId(String statusid);

    Long batchInsertRtCfgStatusInfodetail(List<RtCfgStatusInfodetailDO> rtCfgStatusInfodetailDOS);

    int updateRtCfgStatusInfodetail(RtCfgStatusInfodetailDO detailToUpdate);

    List<StatusInfoDetailContentVO> selectBySubtypeAndProductType(@Param("subType") Integer subType, @Param("productType") String productType);

    RtCfgStatusInfodetailDO selectByDid(String did);

    Map<String,String> selectValueByDids(String[] sids);

    RtCfgStatusInfodetailDO selectBySid(String key);

    Long deleteBatchByInfoIds(String[] infoIds);

    List<RtCfgStatusInfodetailDO> selectBatchByInfoIds(@Param("infoIds") String[] infoIds);

    List<StatusInfoDetailContentVO> selectCodeAndValueByStatusId(@Param("statusid") String statusid, @Param("subtype") Integer subtype);

    List<StatusInfoDetailContentVO> selectNoRestrictions();

    List<StatusInfoDetailContentDO> selectStatusByProductType(@Param("productType")String productType);

    List<StatusInfoDetailContentDO> selectStatusByStatusId(@Param("statusId")String statusId);

    List<RtCfgStatusInfodetailDO> selectByDidList(List<String> didsToUpdate);

    List<RtCfgStatusInfodetailDO> selectBymoduleid(String noduleid);
}




